

package com.scs.application.modules.base.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.model.DataEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
* 医院供应商实体对象
*/
@TableName("hospital_supplier")
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
@Accessors(chain = true)
public class ExcelHospitalSupplierVO extends DataEntity  implements Serializable {

    /** 医院ID */
    @Length(min=1, max=20, message="医院ID长度必须介于 1 和 20 之间")
    private String hospitalId;

    /** 医院名称 */
    @Excel(name = "医院名称")
    private String hospitalName;
    private String supplierId;

//    @NotNull(message = "供应商名称不能为空")
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 供应商账号 */
    @Excel(name = "供应商账号")
    @TableField(exist = false)
    private String loginKey;

    @Excel(name = "正常/停用", dict = "common_inactive")
    private Integer inactive;



}
